package com.china.vo;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/5/9.
 */
@XStreamAlias("news")
public class News implements Serializable{
   private int id;
    private String title;
    private String body;
    private int commentCount;
    private String author;
    private int authorid;
    private String pubDate;
    private String url;
    private String newstype;

    public News() {
    }

    public News(int id, String title, String body, int commentCount, String author, int authorid, String pubDate, String url, String newstype) {
        this.id = id;
        this.title = title;
        this.body = body;
        this.commentCount = commentCount;
        this.author = author;
        this.authorid = authorid;
        this.pubDate = pubDate;
        this.url = url;
        this.newstype = newstype;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getAuthorid() {
        return authorid;
    }

    public void setAuthorid(int authorid) {
        this.authorid = authorid;
    }

    public String getPubDate() {
        return pubDate;
    }

    public void setPubDate(String pubDate) {
        this.pubDate = pubDate;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getNewstype() {
        return newstype;
    }

    public void setNewstype(String newstype) {
        this.newstype = newstype;
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", body='" + body + '\'' +
                ", commentCount=" + commentCount +
                ", author='" + author + '\'' +
                ", authorid=" + authorid +
                ", pubDate='" + pubDate + '\'' +
                ", url='" + url + '\'' +
                ", newstype='" + newstype + '\'' +
                '}';
    }
}
